//
//  UserDTO.m
//  51-Tour
//
//  Created by xiang ying on 14-3-19.
//  Copyright (c) 2014年 xiang ying. All rights reserved.
//

#import "UserDTO.h"

@implementation UserDTO

-(id)init{
    self = [super init];
    if (self) {
        self.userName = @"";
        self.sex = 1;
        self.userIconPath = @"";
        self.userIcon = nil;
        self.tourExp = @"";
        self.userPhone = @"";
        self.code = @"";
        self.tourNum = @"";
        self.recommendNum = 0;
        self.GuideLan = @"";
        self.GuideCity=@"";
        self.GuideIconPath = @"";
        self.GuideIcon = nil;
        self.card = [[CardDTO alloc] init];
    }
    return self;
}

-(UserDTO*)copyfrom:(UserDTO*)dto{

    self.userName = [dto.userName copy];
    self.sex = dto.sex;
    self.userIconPath = [dto.userIconPath copy];
    self.userIcon = dto.userIcon;
    self.tourExp = [dto.tourExp copy];
    self.userPhone = dto.userPhone;
    self.code = dto.code;
    self.tourNum = [dto.tourNum copy];
    self.recommendNum = dto.recommendNum;
    self.GuideLan = [dto.GuideLan copy];
    self.GuideCity=[dto.GuideCity copy];
    self.GuideIconPath = [dto.GuideIconPath copy];
    self.GuideIcon = dto.GuideIcon;
    self.card = [[CardDTO alloc] init];
    [self.card copyfrom:dto.card];
    return self;
}

@end
